{{ template "header" . }}

<!-- Breadcrumb -->
<ol class="breadcrumb">
  <li class="breadcrumb-item"><a href="/">Home</a></li>
  <li class="breadcrumb-item"><a href="{{ Url "virtual-machine-list" }}">Virtual Machines</a></li>
  <li class="breadcrumb-item"><a href="{{ Url "virtual-machine-list" }}?node={{ .Vm.NodeId }}">{{ .Vm.NodeId }}</a></li>
  <li class="breadcrumb-item"><a href="{{ Url "virtual-machine-detail" "id" .Vm.Id "node" .Vm.NodeId }}">{{ .Vm.Id }}</a></li>
  <li class="breadcrumb-item active">{{ .Action | Capitalize }}</li>
</ol>

<div class="container">
  <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-body">
          <div class="row">
            <div class="col-md-12">
              <p>
                Are you sure you want to {{ .Action }} machine <b>{{ .Vm.Id }}</b>?<br>
              </p>
            </div>
          </div>
          <div class="row">
            <div class="col-md-12">
              <form class="JS-ReactiveForm" method="post" action="">{{ CSRFField .Request }}
                <button class="btn {{ if eq .Action "stop" }}btn-danger{{ else }}btn-primary{{ end }}"
                  data-loading="<i class='icon-refresh icons'></i> Applying..."
                  type="submit">{{ .Action | Capitalize }}</button>
                <a class="btn btn-secondary" href="{{ Url "virtual-machine-detail" "id" .Vm.Id "node" .Vm.NodeId }}">Cancel</a>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
{{ template "footer" . }}
